let proxyObj = {}

proxyObj['/'] = {
    //websocket
    ws:false,
    target:'http://127.0.0.1:8080',
    //发送请求头host会被设置target
    changeOrigin:true,
    //重写请求地址
    pathReWrite:{
        '^/':'/'
    }
}

module.exports = {
  lintOnSave: false,
    devServer:{
        host:'localhost',
        port:8000,
        proxy:proxyObj
    }
}